#test_string_count.py
str1 =  "hello python,hello java"
dict1 = {}
for i in str1:
    if i in dict1:
        dict1[i] += 1
    else:
        dict1[i] = 1
print(dict1)
